<?php
Route::rule('/', 'index/index/index');
//用户相关
// -------- 登录注册
Route::rule('/user-login', 'index/index/login');
Route::rule('/user-reg', 'index/index/reg');
//分类聚合
Route::rule('/list', 'index/index/classify');
//答案页面
Route::rule('/question-:id', 'index/index/ask');
//搜索界面
Route::rule('/search', 'index/search/search');
//api
Route::rule('/api', 'api/api/add');
//验证码
Route::rule('/checkcode', 'api/checkcode/getVerify');
//查看答案
Route::rule('/answer', 'api/api/ask');
//404
Route::rule('/404', 'index/index/i_404');
Route::rule('/c-:type-[:c]', 'index/index/cate');
